<template>
	<view>
		<web-view class="webview" :src="src" @message="handleMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
			}
		},
		onLoad(param) {
			const articleId = param.id || ''
			const type = param.type || 'add'
			const user = uni.getStorageSync('user')
			console.log(user,'user')
			this.src = `/hybrid/html/document.html?username=${user.username}&type=${type}&articleId=${articleId}`
		},
		methods: {},
	}
</script>

<style scoped>
</style>
